package com.oc.mba.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * OcDevices entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "oc_devices", catalog = "openmba")
public class OcDevices implements java.io.Serializable {

	// Fields

	private Integer id;
	private String imei;
	private String aid;
	private Short level;
	private Timestamp created;
	private Timestamp updated;

	// Constructors

	/** default constructor */
	public OcDevices() {
	}

	/** full constructor */
	public OcDevices(String imei, String aid, Short level, Timestamp created,
			Timestamp updated) {
		this.imei = imei;
		this.aid = aid;
		this.level = level;
		this.created = created;
		this.updated = updated;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "imei", nullable = false)
	public String getImei() {
		return this.imei;
	}

	public void setImei(String imei) {
		this.imei = imei;
	}

	@Column(name = "aid", nullable = false)
	public String getAid() {
		return this.aid;
	}

	public void setAid(String aid) {
		this.aid = aid;
	}

	@Column(name = "level", nullable = false)
	public Short getLevel() {
		return this.level;
	}

	public void setLevel(Short level) {
		this.level = level;
	}

	@Column(name = "created", nullable = false, length = 19)
	public Timestamp getCreated() {
		return this.created;
	}

	public void setCreated(Timestamp created) {
		this.created = created;
	}

	@Column(name = "updated", nullable = false, length = 19)
	public Timestamp getUpdated() {
		return this.updated;
	}

	public void setUpdated(Timestamp updated) {
		this.updated = updated;
	}

}